#include "segment.h"

Segment::Segment(const Point2d & bottomLeft, double vsize, double hsize)
{
    bottomleft = bottomLeft;
    segmentSize.setWidth(hsize);
    segmentSize.setHeight(vsize);
}

const Point2d & Segment::bottomLeft() const
{
    return bottomleft;
}

void Segment::setBottomLeft(const Point2d & bottomLeft)
{
    bottomleft = bottomLeft;
}

void Segment::setBottomLeft(double latitude, double longitude)
{
    bottomleft.setLatitude(latitude);
    bottomleft.setLongitude(longitude);
}

const QSizeF & Segment::size() const
{
    return segmentSize;
}
